package com.hnqcgczy.supplier.service;

import com.hnqcgczy.supplier.vo.Market;

import java.sql.SQLException;
import java.util.List;

public interface MarketService {
    /**
     * 新增供应商--市场信息
     *
     * @param market
     * @return
     * @throws SQLException
     */
    boolean add(Market market) throws SQLException;

    /**
     * 修改供应商--市场信息
     *
     * @param market
     * @return
     * @throws SQLException
     */
    boolean update(Market market) throws SQLException;

    /**
     * 删除供应商--市场信息
     *
     * @param marketId
     * @return
     * @throws SQLException
     */
    boolean delete(Integer marketId) throws SQLException;

    /**
     * 查询供应商--市场信息
     *
     * @param market
     * @param pageNow
     * @param pageSize
     * @return
     * @throws SQLException
     */
    List<Market> queryByLike(Market market, int pageNow, int pageSize) throws SQLException;

    /**
     * 查单个供应商--市场信息
     *
     * @param marketId
     * @return
     * @throws SQLException
     */
    Market findOne(Integer marketId) throws SQLException;

    int total(Market query) throws SQLException;
}
